package com.ericsson.enap.modules.ossalarm.job.vgc;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.job.ManualQuartzJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.ossalarm.task.vgc.VgcEnmAlarmMonitorTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * VGC 监控采集ENM告警的程序
 * vgcEnmAlarmMonitor.jar
 * nohup java -jar vgcEnmAlarmMonitor.jar >/dev/null 2>&1 &
 * @author yanghai
 */
@Component
public class VgcEnmAlarmMonitorJob implements MainJob {
    @Autowired
    QuartzTableManager quartzTableManager;
    @Autowired
    VgcEnmAlarmMonitorTask vgcEnmAlarmMonitorTask;
    String jobName="vgcEnmAlarmMonitorJob";
    @Override
    public void doTask() {
        quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0/10 * * * ?",vgcEnmAlarmMonitorTask);
    }
}
